<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li>
                <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/reg/clinicForRegist/index')">号表调整列表</a>
            </li>
            <li class="active">
                <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/reg/clinicForRegist/form')">
                    <c:choose>
                        <c:when test="${clinicForRegist.id==''|| clinicForRegist.id==null}">
                            号表调整添加
                        </c:when>
                        <c:otherwise>号表调整修改</c:otherwise>
                    </c:choose>
                </a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="col-lg-12">
                    <form:form id="inputForm" data-parsley-validate="" modelAttribute="clinicForRegist" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/reg/clinicForRegist/save','${ctx}/reg/clinicForRegist/index');" method="post" class="form-horizontal">
                        <form:hidden path="id"/>
                         <div class="form-group">
                            <label class="col-sm-2 control-label">限号数：</label>
                            <div class="col-sm-4">
                                <form:input path="limitNum" htmlEscape="false" data-parsley-required="true" class="form-control" type="number" min="0" maxlength="11" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">限预约号数：</label>
                            <div class="col-sm-4">
                                <form:input path="limitPreNum" type="number"   htmlEscape="false" data-parsley-required="true" class="form-control"  min="0" maxlength="11" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">当前号：</label>
                            <div class="col-sm-4">
                                <form:input path="currentNum" htmlEscape="false" class="form-control"  maxlength="11" disabled="true"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">当日已挂号数：</label>
                            <div class="col-sm-4">
                                <form:input path="currentRegisNum" htmlEscape="false" class="form-control"  maxlength="11" disabled="true"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">已预约号数：</label>
                            <div class="col-sm-4">
                                <form:input path="currentPreNum" htmlEscape="false" class="form-control"  maxlength="11" disabled="true" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/reg/clinicForRegist/index')">
                            </div>
                        </div>
                    </form:form>
                </div>

            </div>
        </section>
    </div>
</div>